package com.zh.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zh.user.mapper.*;
import com.zh.user.service.CallBySystemService;
import com.zh.web.domain.auth.entity.User;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
@RequiredArgsConstructor
/**
 * 仅系统调用
 */
public class CallBySystemServiceImpl implements CallBySystemService {

    private final UserMapper userMapper;
    /**
     * 系统调用 删除过期数据
     *
     * @return Boolean
     */
    @Override
    public String clearAllExpireData() {
        userMapper.permanentlyDelete();
        return "清除成功";
    }
}
